<!DOCTYPE html>
<html>
<head lang="en">
<s3:data name='EdocDatas.headerScript' />
<!-- <s3:import type="css"></s3:import> -->
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp.css${data:buildversion}">
<link rel="stylesheet" href="${data:dependencies.common_v5_path}/cmp-resources/M1H5.css${data:buildversion}">
<link rel="stylesheet" href="${data:dependencies.edoc}/css/cmp-edoc.css${data:buildversion}">
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-listView.css">
<!--
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-picker.css">
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-search.css">
 -->
<title></title>
<style type="text/css">
	.cmp-content div.new-tab-nav .cmp-control-item.cmp-active{color: #3AADFB;border-bottom: 2px solid #3AADFB;}
	.cmp-content div.new-tab-nav .cmp-control-item.cmp-active:before{background-color:transparent}
</style>
</head>
<body class="cmp-fullscreen">
	<header class="cmp-bar cmp-bar-nav head-style">
		<div id="searchHeader">
			  <a id="menus" href="javascript:void(0)" class="cmp-pull-left left-btn">
	              <span class="see-icon-v5-common-arrow-back"></span><i18n key="Edoc.action.return"></i18n></a>
			  <a id="" href="javascript:void(0)" class="cmp-pull-right right-btn">
				<span  id="searchIcon" class="see-icon-search"><em class="dot"></em></span>
			  </a>
	          <h1 id="title" class="cmp-title"><span id="defaultStateName"><i18n key="Edoc.title.edocstatistics"></i18n></span></h1>
		</div>
	</header>
	<div class="cmp-content position_relative" style="bottom:0px;">
		<div id="listTabs" class="cmp-segmented-control cmp-segmented-control-inverted col cmp-segmented-control-primary new-tab-nav">
			<a id="sendRegisterTab" class="cmp-control-item cmp-active" href="#sendRegister_" edocType="sendRegister"><i18n key="Edoc.label.sendRegister"></i18n></a>
			<a id="receiveRegisterTab" class="cmp-control-item" href="#receiveRegister_" edocType="receiveRegister"><i18n key="Edoc.label.receiveRegister"></i18n></a>
		</div>
		<!--发文登记簿-->
		<div id="sendRegister_" class="cmp-control-content cmp-active">
			<div id="sendRegister" class="cmp-scroll-wrapper">
			<div id="sendRegistergContain" class="cmp-scroll">
				<ul id="sendRegisterList" class="cmp-list-content approval_list_content col cmp-table-view col-list">
				</ul>
			</div>
			</div>
		</div>
		<!--收文登记簿-->
		<div id="receiveRegister_" class="cmp-control-content">
			<div id="receiveRegister" class="cmp-scroll-wrapper">
			<div id="receiveRegisterContain" class="cmp-scroll">
				<ul id="receiveRegisterList" class="cmp-list-content approval_list_content col cmp-table-view col-list">
				</ul>
			</div>
			</div>
		</div>
	</div>
    <s3:data name='cordova' /> 
	<s3:import type="js"></s3:import>
	<script src="${data:dependencies.edoc}/js/edocUtil.js${data:buildversion}"></script>
	<script src="${data:dependencies.common_v5_path}/jquery/jquery-2.1.4.min.js${data:buildversion}"></script>
	<script src="${data:dependencies.edoc}/i18n/EdocResources_zh_CN.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-i18n.js${data:buildversion}"></script>
<script type="text/javascript">
  var $verstion = "${data:buildversion}";
  var _edocPath = "${data:dependencies.edoc}";
  var _collPath = "${data:dependencies.collaboration}";
  var _cmpPath = "${data:dependencies.cmp}";
  cmp.i18n.init("${data:dependencies.edoc}/i18n/", "EdocResources");
</script>
<script src="${data:dependencies.cmp}/js/cmp-asyncLoad.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-imgCache.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-listView.js${data:buildversion}"></script>
<script src="<s3:data name='dependencies.edoc' />/js/common.js${data:buildversion}"></script>
<script src="<s3:data name='dependencies.edoc' />/js/edocStatistics.js${data:buildversion}"></script>
<!--
<script src="${data:dependencies.cmp}/js/cmp-picker.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-dtPicker.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-search.js${data:buildversion}"></script>
-->

<!-- js模版 -->
<script type="text/html" id="list_li_tpl">
<% for(var i = 0,len = this.length;i < len; i++){ %>
	<% var obj = this[i]; %>
	<% var urgentLevel = obj.summary.urgentLevel - 1;%>
		<li class="cmp-list-cell cmp-table-view-cell treatment">
		<!-- 内容区域 -->
		<div class="cmp-slider-handle">
			<!--当前事项状态:mark未读 hold暂存 end结束-->
			<%if(obj.finshed){%>
				<div class="mark end">
            		<span class="text"><%=cmp.i18n("Edoc.page.lable.button.end")%></span>
            	</div>
			<%}else if(obj.affair.subState == '13'){%>
				<div class="mark hold">
            		<span class="text"><%=cmp.i18n("Edoc.page.lable.button.storage")%></span>
            	</div>
			<%}else if(obj.affair.subState == '11'){%>
				<div class="mark">
            		<span class="text"><%=cmp.i18n("Edoc.page.lable.button.unRead")%></span>
            	</div>
			<%}%>

			<div summaryId="<%=obj.summary.summaryId %>" app="<%=obj.edocType %>"  class="cmp-list-cell-info col-list-cell-info">
				<div class="content_info">
					<span class="cmp-ellipsis-2 cmp-pull-left list_title_name">
						<!-- 重要程度 -->
				  		<!-- <span style="color: #FF0000;font-size:12px;position:relative;top:-1px;" class="cmp-icon iconfont see-icon-v5-common-important-<%=urgentLevel%>"></span> -->
						<%if(obj.secretLevelName != null) { %>
							<!--<span>[<%=obj.secretLevelName%>]</span>-->
						<% } %>
						<%=obj.summary.subject.escapeHTML() %>
					</span>

						<div class="cmp-pull-left padding_5_0" style="width:88%;display:inline;">
							<div class="cmp-h6 wh100">
							<% if(obj.summary.docMark!="" && obj.summary.docMark != null){%>
						<%if(urgentLevel == 4){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=	urgentLevel%>"><%=cmp.i18n("Edoc.lel.importantest")%></span>
						<% } else if(urgentLevel == 1){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.important")%></span>
						<% } else if(urgentLevel == 2){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.urgent")%></span>
						<% }else if(urgentLevel == 3){ %>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.emergency")%></span>
						<%}%>
								<span class="send-name" style="max-width:inherit;width:100%;"><%=obj.summary.docMark.escapeHTML() %></span>
							</div>
						</div>
						<div class="cmp-pull-left padding_5_0" style="padding-top:0px;height:30px;">
					<%}else{%>
						<div class="cmp-pull-left padding_5_0">
					<%}%>


						<div class="cmp-h6" style=" height: 25px;line-height: 25px;overflow: hidden; ">
							<!--发起人 -->
							<span class="send-name list-sub-text"><%=obj.createPerson%></span>
							<!-- 发起时间-->
							<span class="send-time list-sub-text"><%=obj.createDate%></span>
							<!-- 是否有附件 -->
							<%if(obj.summary.hasAttachments){%>
                                <span class="see-icon-accessory list-sub-text" style="color: #6E6E6E;"></span>
							<%}%>
							<% if(obj.backFromName) {%>
                                <span class="see-icon-v5-common-rollback-fill list-sub-text" style="font-size:12px; color:#FF8300;"></span>
                            <%} %>

							<!--是否超期-->
							<% if(obj.surplusTime == null){ %>

							<% } else if(obj.surplusTime[0] == '0' && obj.surplusTime[1] == '0' && obj.surplusTime[2] == '0'){ %>
								<span class="list-sub-text" style="overflow:hidden;">
									<span class="see-icon-v5-common-time list-sub-text" style="color:#fc4906; font-size:12px;"></span>
									<%=cmp.i18n("Edoc.info.extended")%>
								</span>
							<%} else if(obj.surplusTime[0] <=0 && obj.surplusTime[1] <=0 && obj.surplusTime[2] <=0) {%>
								<span class="list-sub-text" style=" overflow:hidden;">
									<span class="see-icon-v5-common-time list-sub-text" style="color:#fc4906; font-size:12px;"></span>
									<%=cmp.i18n("Edoc.info.extended")%>
								</span>
							<% }else {%>
								<% if(obj.surplusTime[0] != 0){%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[0]%><%=cmp.i18n("Edoc.label.day")%>
									</span>
								<%}else if(obj.surplusTime[1] != 0) {%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[1]%><%=cmp.i18n("Edoc.label.hour")%>
									</span>
								<% }else if(obj.surplusTime[2] != 0){%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[2]%><%=cmp.i18n("Edoc.label.minutes")%>
									</span>
								<%}%>
							<%}%>
						</div>
					</div>
				</div>
				<!--当前节点名称-->
				<% if(obj.affairState != 1 && obj.affairState != 2){%>
					<div class="plaint">
						<!--加签-->
						<%if(obj.fromName != null && obj.fromName != ""){%>
							<span class="add">
								<span class="cmp-icon-synergy-list adduser"></span>
								<span><%=obj.fromName %></span>
							</span>
						<%}%>
						<!--回退-->
						<%if(obj.backFromName != null && obj.backFromName != ""){%>
							<span class="add">
								<span class="cmp-icon-synergy-list back"></span>
								<span><%=obj.backFromName %></span>
							</span>
						<%}%>
					</div>
				<%}%>
			</div>
		  </div>
        </div>
	</li>
<%}%>
</script>
</body>
</html>